//
//  MOshoppingCell.m
//  搜索商品
//
//  Created by Mac on 15/11/23.
//  Copyright © 2015年 com.moruiwei.www. All rights reserved.
//

#import "MOshoppingCell.h"
#import "MOShoppingModel.h"
#import "MJExtension.h"
#import "UIImageView+WebCache.h"
#import "UIButton+WebCache.h"
#import "AFNetworking.h"
#import "MBProgressHUD+MJ.h"
#import "MJRefresh.h"
#import "MJExtension.h"
@interface MOshoppingCell ()

@property (weak, nonatomic) IBOutlet UIImageView *image;

@property (weak, nonatomic) IBOutlet UILabel *title;
@property (weak, nonatomic) IBOutlet UILabel *dic;

@end

@implementation MOshoppingCell


- (void)setShoppingModel:(MOShoppingModel *)shoppingModel
{
    _shoppingModel = shoppingModel;
    
    [self.image sd_setImageWithURL:[NSURL URLWithString:shoppingModel.image] placeholderImage:nil];
    self.title.text = shoppingModel.name;
    self.dic.text = shoppingModel.price;
    
    
   //NSLog(@"%@",[shoppingModel keyValues]);
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
